﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hi_Baidu.Packet;
using UMFramework.Network;

namespace Hi_Baidu.Packet
{
    public class TalkMessageInPackage : BaseInPackage
    {
        public new Protocol.TALK_IN_NetworkCommand Command;

        /// <summary>
        ///     所有聊天信息基类
        /// </summary>
        public TalkMessageInPackage()
        {}

        /// <summary>
        ///     所有聊天信息基类
        /// </summary>
        public TalkMessageInPackage(TalkMessageInPackage inpackage)
            : base(inpackage)
        {
            this.talkPackage = inpackage;
        }

        public override Protocol.NetworkProtocol GetProtocol()
        {
            return Packet.Protocol.NetworkProtocol.TALK_MESSAGE;
        }


        private String content;
        /// <summary>
        ///     聊天协议具体内容
        public String Content
        {
            get { return content; }
            set { content = value; }
        }

        private TalkMessageInPackage talkPackage;
        /// <summary>
        ///         聊天信息包
        /// </summary>
        public TalkMessageInPackage TalkPackage
        {
            get { return talkPackage; }
            set { talkPackage = value; }
        }
    }
}
